import * as React from "react";

interface HelloProps { compiler: string; framework: string; }
export class Hello extends React.Component<HelloProps, {}> {
    render() {
        interface Todo {
          name: string;
          age: number;
        }
        let list: Todo[] = [{
          name: 'dadasdas',
          age: 122
        }];
        console.log(list);
        return (
          <div>
            <ul>
              {
                list.map((item, index) => (
                  <li key={index}>{item.name}{item.age}</li>
                ))
              }
            </ul>
            <input type="text"/>
            <button>提交</button>
          </div>
        );
    }
}